
import { getRequest } from "./Request";
import type { FilmDetailResponse, FilmListParams, FilmListReaponse } from "./Type";

// 电影列表
export const getFilmListApi = ({ cityId, pageNum, pageSize, type }: FilmListParams) => {
  return getRequest<FilmListParams, FilmListReaponse>({ cityId, pageNum, pageSize, type }, 'film.list')
}

// 电影详情
export const getFilmDetailApi = (filmId: number) => {
  return getRequest<{ filmId: number }, FilmDetailResponse>({ filmId }, 'film.info')
}


